package com.sugar.real.estate.module.business.controller.admin.openedcity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.sugar.real.estate.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 已开通城市列表 Request VO")
@Data
public class OpenedCityListReqVO {

    @Schema(description = "城市名称")
    private String nameZhCn;

    @Schema(description = "父级ID", example = "19179")
    private Long parentId;

    @Schema(description = "类型（0国内 1国外）", example = "2")
    private Boolean type;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}